package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 每个媒体的收益实体层
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_company_profit_summary")
public class CompanyProfitSummary implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name="cps_id",strategy="uuid")
	@GeneratedValue(generator="cps_id")
	@Column(name="cps_id",nullable=false,unique=true,length=32)
	private String cpsId;
	@Column(name="com_id",nullable=false,length=32)
	private String comId;
	@Column(name="com_name",nullable=false,length=32)
	private String comName;
	@Column(name="s_date",nullable=false,length=32)
	private String sDate;
	@Column(name="com_total_profit",length=32)
	private double comTotalProfit;//企业收益
	@Column(name="total_profit",length=32)
	private double totalProfit;//我们(极目网站)的收益
	@Column(name="total_num",length=32)
	private int totalNum;//卖出的菜品总数量
	@Column(name="profit_rate",length=32)
	private int profitRate;//极目/企业收益比值，注意库村的百倍利率
	@Column(name="room_date",length=32)
	private int roomDate;//送餐时间
	@Column(name="avg_eval",length=32)
	private double avgEval;
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getComName() {
		return comName;
	}
	public void setComName(String comName) {
		this.comName = comName;
	}
	public String getSDate() {
		return sDate;
	}
	public void setSDate(String sDate) {
		this.sDate = sDate;
	}
	public double getComTotalProfit() {
		return comTotalProfit;
	}
	public void setComTotalProfit(double comTotalProfit) {
		this.comTotalProfit = comTotalProfit;
	}
	public double getTotalProfit() {
		return totalProfit;
	}
	public void setTotalProfit(double totalProfit) {
		this.totalProfit = totalProfit;
	}
	public int getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}
	public int getProfitRate() {
		return profitRate;
	}
	public void setProfitRate(int profitRate) {
		this.profitRate = profitRate;
	}
	public String getCpsId() {
		return cpsId;
	}
	public void setCpsId(String cpsId) {
		this.cpsId = cpsId;
	}
	public int getRoomDate() {
		return roomDate;
	}
	public void setRoomDate(int roomDate) {
		this.roomDate = roomDate;
	}
	public double getAvgEval() {
		return avgEval;
	}
	public void setAvgEval(double avgEval) {
		this.avgEval = avgEval;
	}
	
}
